#ifndef __GAMEMAIN_SCENE_H__
#define __GAMEMAIN_SCENE_H__

#include "cocos2d.h"

#include "SimpleAudioEngine.h"

#define CONTROL_PLAYER	4
#define ACTION_MAX		4

class GameMain : public cocos2d::CCLayer
{
private:
	bool InitCore();

	bool quit;

	cocos2d::CCMenuItemImage* action_menu[CONTROL_PLAYER];
	cocos2d::CCSpriteFrame* menu_frame[ACTION_MAX];

public:
	// Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone
    virtual bool init();

    // there's no 'id' in cpp, so we recommand to return the exactly class pointer
    static cocos2d::CCScene* scene();

	virtual ~GameMain();

	virtual void menuFather(CCObject* pSender);
	virtual void menuDaugther(CCObject* pSender);
	virtual void menuSon(CCObject* pSender);
	virtual void menuBaby(CCObject* pSender);

	virtual void GameMain::doIt(CCObject* pSender);

    // implement the "static node()" method manually
	CREATE_FUNC(GameMain);
};

#endif  // __GameMain_SCENE_H__